/**@Title   UserConfig.java
 * @Package com.gong
 * @Desc    
 * @Author  GongWenhua
 * @Date    2017年6月28日 下午2:29:20
 * @Version 1.0
*/
package com.gong;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix="test")
@PropertySource("classpath:test.properties")
public class UserConfig {
	private String name;
	private int age;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
}
